package com.ldzy.service.serviceIpmI;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ldzy.dao.CakeMapper;
import com.ldzy.dao.OrderMapper;
import com.ldzy.pojo.Cake;
import com.ldzy.pojo.Order;
import com.ldzy.service.ICakeService;
import com.ldzy.service.IOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IOrderServiceIpmI extends ServiceImpl<OrderMapper, Order> implements IOrderService {
    @Resource OrderMapper orderMapper;

    @Override
    public List<Order> orderList(Order order) {
        return orderMapper.orderList(order);
    }

    @Override
    public Order order(Order order) {
        return  orderMapper.order(order);
    }
}
